package com.ash.service.impl;

import com.ash.dao.imp.DaoImpl;
import com.ash.entity.Role;
import com.ash.service.IRoleService;

import java.util.List;

/**
 * @author : Chen Chao
 * @encoding : UTF-8
 * @date : 2020/12/28 18:39
 * @file : test06.com.ash.service.impl.RoleServiceImpl.java
 * @software : IntelliJ IDEA
 * @since : 1.8
 */
public class RoleServiceImpl implements IRoleService {
    @Override
    public List<Role> getRoleList() {
        DaoImpl<Role> roleDao = new DaoImpl<>(Role.class, "id");
        return roleDao.selectAll();
    }
}
